package dao

import (
	"gorm.io/gorm"
)

type IolUser struct {
	gorm.Model
	Name           string `json:"name" gorm:"type:varchar(20);not null;comment:'患者名称'"`
	Image          string `json:"image" gorm:"type:varchar(255);not null;comment:'头像'"`
	CardType       int    `json:"cardType" gorm:"type:tinyint(1);comment:'1-身份证2-港澳台身份证'"`
	CardNum        string `json:"cardNum" gorm:"type:varchar(20);not null;comment:'身份证号码'"`
	WeChatNickName string `json:"weChatNickName" gorm:"type:varchar(30);not null;comment:'微信昵称'"`
	Tel            string `json:"tel" gorm:"type:char(11);not null;comment:'手机号'"`
	Who            int    `json:"who" gorm:"type:tinyint(1);comment:'1-本人2-父母'"`
}

type Num struct {
	gorm.Model
	IolUserId int    `json:"iolUserId" gorm:"type:int(10);not null;comment:'就诊人编号'"`
	DoctorId  int    `json:"doctorId" gorm:"type:int(10);not null;comment:'医生编号'"`
	Times     string `json:"times" gorm:"type:varchar(255);comment:'就诊时间'"`
	Type      int    `json:"type" gorm:"type:tinyint(1);comment:'1-预约成功2-已取消3-已就诊'"`
	Why       string `json:"why" gorm:"type:varchar(100);comment:'取消原因'"`
	Methods   string `json:"methods" gorm:"type:varchar(50);comment:'取消方式'"`
}

type User struct {
	gorm.Model
	Name      string  `json:"name" gorm:"type:varchar(30);not null;comment:'医生名称'"`
	Image     string  `json:"image" gorm:"type:varchar(255);not null;comment:'医生图片'"`
	Where     int     `json:"where" gorm:"type:tinyint(1);nut null;comment:'1-a院区2-b院区3-c院区'"`
	ObjRoom   int     `json:"objRoom" gorm:"type:tinyint(1);not null;comment:'1-牙科2-眼科3-皮肤科'"`
	Job       int     `json:"job" gorm:"type:tinyint(1);not null;comment:'1-专家2-普通'"`
	Title     int     `json:"title" gorm:"type:tinyint(1);comment:'1-专业过硬2-妙手回春'"`
	NumPrice  float64 `json:"numPrice" gorm:"type:decimal(10,2);not null;comment:'挂号费'"`
	LookPrice float64 `json:"lookPrice" gorm:"type:decimal(10,2);not null;comment:'检查费'"`
	Cont      string  `json:"cont" gorm:"type:varchar(255);not null;comment:'医生简介'"`
}
